package tablet.client.workspace;

import java.net.InetAddress;

public class StateTv {
	
	private String Id;
	private int numChannel;
	private String channel;
	private String prog;
	private String gender;
	private String startTime;
	private String endTime;
	private String webSite;
	private String description;
	
	public StateTv(String answer){
		String delims = "[,]";
		String[] tvData = answer.split(delims);
		this.Id = tvData[0];
		this.channel = tvData[1];
		this.prog = tvData[2];
		this.gender = tvData[3];
		this.startTime = tvData[4];
		this.endTime= tvData[5];
		this.webSite = tvData[6];
		for (int i=7; i<tvData.length;i++){
			this.description += tvData[i];
		}
	}
	
	public String getId(){return this.Id;}
	public String getChannel(){return this.channel;}
	public String getProgrammation(){return this.prog;}
	public String getGender(){return this.gender;}
	public String getStartTime(){return this.startTime;}
	public String getEndTime(){return this.endTime;}
	public String getWebSite(){	return this.webSite;}
	public String getDescription(){	return this.description;}

}
